﻿using MyCompany.MyProject.Model.Models.RootKey;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompany.MyProject.Model.Models
{
    /// <summary>
    /// 用户跟角色关联表
    /// </summary>
    public class UserRole:RootEntityTKey<long>
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        public long RoleId { get; set; }

        /// <summary>
        /// 设置或获取是否禁用，逻辑上的删除
        /// </summary>
        public bool? IsDeleted { get; set; }

        /// <summary>
        /// 创建者ID
        /// </summary>
        public long? CreateId { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        [SugarColumn(Length = 50)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改ID
        /// </summary>
        public int? ModifyId { get; set; }

        /// <summary>
        /// 修改者
        /// </summary>
        [SugarColumn(Length =50)]
        public string? ModifyBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }
    }
}
